package com.schoolai.schoolstudy.feign;

import com.schoolai.entity.SchoolStudyEnglishWorkTask;
import com.schoolai.feign.study.IFeignSchoolStudyEnglishWorkTaskController;
import com.schoolai.schoolstudy.service.SchoolStudyEnglishWorkTaskService;
import com.schoolai.util.base.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright(C),2019-2025，XX公司
 * FileName:FeignSchoolStudyEnglishWorkTaskController
 * Author:bobby
 * 创建时间：2025/9/30 10:26
 * Description:记忆单词接口
 * History:
 * <auth>        <time>       <version>       <desc>
 * 作者          修改时间       版本号         描述
 */
@RestController
public class FeignSchoolStudyEnglishWorkTaskController implements IFeignSchoolStudyEnglishWorkTaskController {

    @Autowired
    private SchoolStudyEnglishWorkTaskService schoolStudyEnglishWorkTaskService;

    @Override
    public SchoolStudyEnglishWorkTask getTaskAndListById(String id) {
        return (SchoolStudyEnglishWorkTask)schoolStudyEnglishWorkTaskService.getTaskAndListById(id).getData();
    }
}
